﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing" mc:Ignorable="d" x:Class="Upreader.Presentation.Client.MainWindow"
        Height="600" Width="800" WindowStyle="None" MouseLeftButtonDown="WindowMouseLeftButtonDown">
	<Window.Resources>
		<SolidColorBrush x:Key="BaseMenuButtonColor" Color="#FF979797"/>
		<SolidColorBrush x:Key="MouseOverMenuButtonColor" Color="White"/>
		<ControlTemplate x:Key="MenuItemTemplate" TargetType="{x:Type Button}">
			<Grid x:Name="grid">
				<VisualStateManager.VisualStateGroups>
					<VisualStateGroup x:Name="CommonStates">
						<VisualStateGroup.Transitions>
							<VisualTransition GeneratedDuration="0:0:0.2">
								<VisualTransition.GeneratedEasingFunction>
									<CircleEase EasingMode="EaseIn"/>
								</VisualTransition.GeneratedEasingFunction>
							</VisualTransition>
						</VisualStateGroup.Transitions>
						<VisualState x:Name="Normal"/>
						<VisualState x:Name="MouseOver"/>
						<VisualState x:Name="Pressed"/>
						<VisualState x:Name="Disabled"/>
					</VisualStateGroup>
				</VisualStateManager.VisualStateGroups>
				<TextBlock TextWrapping="Wrap" Text="{TemplateBinding Content}" VerticalAlignment="Center" d:LayoutOverrides="Width" HorizontalAlignment="Center" Margin="10" FontSize="26.667" Foreground="{DynamicResource BaseMenuButtonColor}" />
			</Grid>
		</ControlTemplate>
		<ControlTemplate x:Key="NavigateLeftButton" TargetType="{x:Type Button}">
			<Grid>
				<ed:BlockArrow Fill="#FF878787" Height="Auto" Orientation="Left" Stroke="Black" StrokeThickness="0" Width="Auto"/>
			</Grid>
		</ControlTemplate>
		<ControlTemplate x:Key="NavigateRightButton" TargetType="{x:Type Button}">
			<Grid>
				<ed:BlockArrow Height="Auto" Orientation="Right" Stroke="Black" StrokeThickness="0" Width="Auto" Fill="{DynamicResource BaseMenuButtonColor}"/>
			</Grid>
		</ControlTemplate>
		<ControlTemplate x:Key="ApplicationControlButtonTemplate" TargetType="{x:Type Button}">
			<Grid>
				<TextBlock TextWrapping="Wrap" Text="{TemplateBinding Content}" d:LayoutOverrides="Width, Height" Foreground="White" Margin="5,0" FontWeight="Bold" FontSize="13.333"/>
			</Grid>
		</ControlTemplate>
	</Window.Resources>
    <Grid x:Name="PageLayoutWithNavigation">
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto"/>
    		<RowDefinition/>
    	</Grid.RowDefinitions>
        <Grid.Background>
            <RadialGradientBrush>
                <GradientStop Color="#FF0D0B0B" Offset="0.25" />
                <GradientStop Color="Black" Offset="1" />
            </RadialGradientBrush>
        </Grid.Background>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Column="0" Height="Auto" HorizontalAlignment="Left" x:Name="MenuPanel" VerticalAlignment="Stretch" Grid.Row="1">
        	<DockPanel x:Name="NavigationPanel" Margin="10">
        		<Button x:Name="NavigateRightButton" Width="40" Template="{DynamicResource NavigateLeftButton}" Height="20" Command="{x:Static NavigationCommands.BrowseBack}"/>
        		<Button x:Name="NavigateLeftButton" Width="40" Template="{DynamicResource NavigateRightButton}" Height="20" DockPanel.Dock="Right"/>
        	</DockPanel>
        	<Button x:Name="MenuServersButton" Template="{DynamicResource MenuItemTemplate}" Content="Servers" />
        </StackPanel>
        <DockPanel Grid.Column="1" Grid.Row="1">
        	<Frame x:Name="PageFrame" Content="Frame"/>
        </DockPanel>
        <DockPanel LastChildFill="False" Grid.ColumnSpan="2" Height="15"  Grid.Row="1" VerticalAlignment="Top" >
        	<StackPanel Orientation="Horizontal" DockPanel.Dock="Right">
        		<Button x:Name="MinimizeButton" Content="-" Template="{DynamicResource ApplicationControlButtonTemplate}" Click="MinimizeClick" />
        		<Button x:Name="CloseButton" Content="X" Template="{DynamicResource ApplicationControlButtonTemplate}" Click="CloseClick" />
        	</StackPanel>
        </DockPanel>
    </Grid>
</Window>
